package com.krmes.mes;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

import com.krmes.mes.app.AppManager;

import java.util.Timer;
import java.util.TimerTask;

public class SplashActivity
        extends FragmentActivity
{
    private static final int DELAY = 2000;

    protected void onCreate(Bundle paramBundle)
    {
        super.onCreate(paramBundle);
        setContentView(R.layout.activity_splash);
        AppManager.getAppManager().addActivity(this);

        final Intent loginActiviy = new Intent(this, LoginActivity.class);
        new Timer().schedule(new TimerTask()
        {
            public void run()
            {
                SplashActivity.this.startActivity(loginActiviy);

                SplashActivity.this.finish();
            }
        }, DELAY);

    }
}
